import Vue from 'vue'
import Router from 'vue-router'
import login from 'views/login'
import list from 'views/list'
import videoPlay from 'views/videoPlay'
import exam from 'views/exam'
import answer from 'views/answer'
Vue.use(Router)
const routes = new Router({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/',
      redirect: '/list'
    },
    {
      path: '/list',
      name: 'list',
      component: list
    },
    {
      path: '/video',
      name: 'video',
      component: videoPlay
    },
    {
      path: '/exam',
      name: 'exam',
      component: exam
    },
    {
      path: '/answer',
      name: 'answer',
      component: answer
    }
  ]
})

export default routes
